package com.desay.pangoo.itmt.repository;

import java.util.List;

import com.desay.pangoo.itmt.entity.WorkGroupEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.desay.pangoo.itmt.entity.TechOnlineReviewEntity;
import com.desay.pangoo.itmt.entity.TechOnlineReviewRelevantEntity;

/**
 * @author uidq1163
 */
@Repository
public interface TechOnlineReviewRelevantRepository extends JpaSpecificationExecutor<TechOnlineReviewRelevantEntity>,
		PagingAndSortingRepository<TechOnlineReviewRelevantEntity, Long> {

	/**
	 * 查询工作组是否对评审进行反馈
	 * 
	 * @param workGroup
	 * @param techOnlineReview
	 * @return
	 */
	TechOnlineReviewRelevantEntity findByWorkGroupAndTechOnlineReview(WorkGroupEntity workGroup,
			TechOnlineReviewEntity techOnlineReview);

	/**
	 * 根据提案申请查询所有ITMT leader 反馈列表
	 * 
	 * @param techOnlineReview
	 * @return
	 */
	List<TechOnlineReviewRelevantEntity> findByTechOnlineReview(TechOnlineReviewEntity techOnlineReview);
}